#define _CRT_SECURE_NO_WARNINGS 1

#include "Bucket_HashTable.h"
#include <iostream>
using namespace hash_bucket;
using namespace std;
int main()
{
	//HashTable<int, int> ht;
	//ht.Insert({1,1});
	//ht.Insert({2,2});
	////ht.Insert({3,3});
	//ht.Insert({12,12});
	//ht.Insert({22,22});
	//ht.Insert({32,32});
	//ht.Insert({33,33});
	////ht.Insert({33,33});
	////ht.Erase(33);
	//ht.Erase(22);
	//ht.Insert({4,4});
	//ht.Insert({8,8});
	////cout << ht.Find(22)->second << endl;
	//cout << ht.Find(1)->second << endl;
	//cout << ht.Find(2)->second << endl;
	//cout << ht.Find(32)->second << endl;
	HashTable<string, int> ht1;
	ht1.Insert({"a",0});
	ht1.Insert({"bbb",0});
	ht1.Insert({"ccc",0});
	ht1.Insert({"ccc",0});
	ht1.Insert({"e",0});
	ht1.Insert({"f",0});
	ht1.Insert({"ff",0});
	cout << ht1.Find("a")->first << endl;
	cout << ht1.Find("bbb")->first<<endl;
	cout << ht1.Find("ccc")->first<<endl;
	cout << ht1.Find("e")->first<<endl;
	return 0;
}